import $axios from "./request";
//产品板块

//  订单列表
export const $product = (data) => {
  return $axios.post("v1/product/index", data);
};
// 获取品牌列表
export const $getBrand = (data) => {
  return $axios.post("v1/product/getBrand", data);
};
// 获取品牌下的产品
export const $getBrandProduct = (data) => {
  return $axios.post("v1/product/getBrandProduct", data);
};
// 获取分类下的商品
export const $getCategoryProduct = (data) => {
  return $axios.post("v1/product/getCategoryProduct", data);
};
// 获取商机列表
export const $nicheGetList = (data) => {
  return $axios.post("v1/product/nicheGetList", data);
};
// 添加商品
export const $addproduct = (data) => {
  return $axios.post("v1/product/add", data);
};
// 商品编辑
export const $edit = (data) => {
  return $axios.post("v1/product/edit", data);
};
// 上传图片
export const $ImageUpload = (data) => {
  return $axios.post("v1/product/ImageUpload", data);
};
// 删除图片
export const $delIamge = (data) => {
  return $axios.post("v1/product/delIamge", data);
};
// 获取产品文件列表
export const $getFileList = (data) => {
  return $axios.post("v1/product/getFileList", data);
};
// 文件上传
export const $fileUpload = (data) => {
  return $axios.post("v1/product/fileUpload", data);
};
// 获取国家
export const $nicheCountryList = (data) => {
  return $axios.post("v1/product/getCountryList", data);
};
// 新增商机
export const $nicheAdd = (data) => {
  return $axios.post("v1/product/nicheAdd", data);
};
// 新增库存
export const $stockadd = (data) => {
  return $axios.post("v1/product/stockadd", data);
};
// 获取库存列表
export const $stockGetList = (data) => {
  return $axios.post("v1/product/stockGetList", data);
};
// 获取商品详情
export const $getInfo = (data) => {
  return $axios.post("v1/product/getInfo", data);
};
// 文件关联的产品
export const $fileSelectProduct = (data) => {
  return $axios.post("v1/product/fileSelectProduct", data);
};
//产品描述编辑
export const $descriptionEdit = (data) => {
  return $axios.post("v1/product/descriptionEdit", data);
};

//运输板块

//获取首页列表
export const $index = (data) => {
  return $axios.post("v1/transport/index", data);
};
//获取货运状态
export const $getFreightStatus = (data) => {
  return $axios.post("v1/transport/getFreightStatus", data);
};
//获取国家列表
export const $getCountryList = (data) => {
  return $axios.post("v1/transport/getCountryList", data);
};
//获取运输明细
export const $getShipTaskInfo = (data) => {
  return $axios.post("v1/transport/getShipTaskInfo", data);
};
//获取打包列表
export const $packList = (data) => {
  return $axios.post("v1/transport/packindex", data);
};
//新建打包
export const $packadd = (data) => {
  return $axios.post("v1/transport/packadd", data);
};
//编辑打包
export const $packedit = (data) => {
  return $axios.post("v1/transport/packedit", data);
};
//删除打包
export const $packdel = (data) => {
  return $axios.post("v1/transport/packdel", data);
};
//图片上传
export const $transportImageUpload = (data) => {
  return $axios.post("v1/transport/ImageUpload", data);
};
//获取图片
export const $getImage = (data) => {
  return $axios.post("v1/transport/getImage", data);
};
//获取分享链接
export const $getSharingLink = (data) => {
  return $axios.post("v1/transport/getSharingLink", data);
};
//链接检验密码
export const $checkPwd = (data) => {
  return $axios.post("v1/file/checkPwd", data);
};
//获取分享的图片
export const $ShareInfo = (data) => {
  return $axios.post("v1/file/ShareInfo", data);
};
//查看物流
export const $GetLogisticsNode = (data) => {
  return $axios.post("v1/transport/QueryLogisticsNode", data);
};
//删除图片
export const $delIamges = (data) => {
  return $axios.post("v1/transport/delIamge", data);
};
//获取图片二进制文件
export const $getBinaryFileStream = (data) => {
  return $axios.post("v1/file/getBinaryFileStream", data);
};
//运输列表编辑
export const $transportEdit = (data) => {
  return $axios.post("v1/transport/edit", data);
};

//获取库存出入明细列表
export const getWareList = (data) => {
  return;
};

//获取采购员列表
export const getPurchaseList = (data) => {
  return $axios.post("v1/warehouse/getPurchaseList", data);
};

//获取产品分类
export const getProductClassify = (data) => {
  return $axios.post("v1/warehouse/getProductClassify", data);
};

//获取产品分类下的产品
export const getCategoryProduct = (data) => {
  return $axios.post("v1/warehouse/getCategoryProduct", data);
};

//获取型号做搜索
export const getModel = (data) => {
  return $axios.post("v1/warehouse/getModel", data);
};

//库存列表
export const management = (data) => {
  return $axios.post("v1/warehouse/management", data);
};

//新增库存
export const putInStorage = (data) => {
  return $axios.post("v1/warehouse/putInStorage", data);
};
//出库
export const putOutStorage = (data) => {
  return $axios.post("v1/warehouse/putOutStorage", data);
};
